package org.wak.inventory.events
{
	import flash.events.Event;
	
	import org.wak.inventory.InventoryItem;

	public class InventoryEvent extends Event
	{
		public static const ITEM_ADDED:String = "item_added" ;
		public static const ITEM_REMOVED:String = "item_removed" ;
		
		private var mInventoryItem:InventoryItem = null ;
		
		public function InventoryEvent(type:String, pItem:InventoryItem, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			mInventoryItem = pItem ;
		}
		
		public function get inventoryItem():InventoryItem
		{
			return mInventoryItem ;
		}
		
	}
}